import request from '@/utils/request'

export function fetchWorkshopList(params) {
  return request({
    url: '/api/workshop/getList',
    method: 'post',
    params
  })
}

export function createWorkshop(params) {
  return request({
    url: '/api/workshop/add',
    method: 'post',
    params
  })
}

export function updateWorkshop(data) {
  return request({
    url: '/api/workshop/update',
    method: 'post',
    data
  })
}

export function deleteWorkshop(params) {
  return request({
    url: '/api/workshop/delete',
    method: 'post',
    params
  })
}